from flask import Flask
import sys
import json
import urllib, json, urllib2, hashlib,struct,sha,time
import common as bbc
app = Flask(__name__)

@app.route('/')
def getbhzbDiff():

    diff = bbc.get_BH_ZB_Diff()
    return json.dumps(diff)
@app.route('/xmr')
def monitorxmr():

    diff = bbc.findChanceXMR_BH_Hitbtc()
    return json.dumps(diff)

@app.route('/zbkr')
def monitorzbkr():
    diff = bbc.getDifferenceRateBHKraken()
    return json.dumps(diff)

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, debug='True')
